<?php
class View_Helper_Date extends Zend_View_Helper_Abstract {
	protected $_date;

  public function date($timestamp = null) {
		if(isset($this->_datetime) === false) {
			$this->_date = new Zend_Date();
		}

		if($timestamp !== null) {
			$this->_date->set($timestamp);
		}

		return $this;
	}

	public function datetime() {
		return $this->_date->get('dd.MM.Y HH:m:s');
	}
}
?>